package com.raozg.serializabletest;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Author: raozg
 * @date: 2022/2/17
 */
public class Student implements Serializable {

    /**
     * 序列化
     */
    private static final long serialVersionUID = -8629905830246363962L;
    /**
     * id
     */
    private int id;
    /**
     * 姓名
     */
    private String name;

    public Student() {

    }

    /**
     *
     * @param id
     * @param name
     */
    public Student(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
